<%@page import="fr.dauphine.bookstore.backoffice.SessionUtil,
				fr.dauphine.bookstore.modele.*,
				fr.dauphine.bookstore.hibernate.HibernateUtil,
				fr.dauphine.bookstore.commun.*,
				org.hibernate.Session,
				java.util.Collection,
				java.util.Map,
				java.util.Map.Entry" %>
	<div class="entete">
		<h1>Bookstore - Back office</h1>
	</div>
	<div class="menu">
		<h3>Menu</h3>
		<ul class="boite bleue">
			<li>
				<img src="../resources/images/house.png" alt="" />
				<a href="index.jsp">Accueil</a>
			</li>
			<li>
				<img src="../resources/images/world.png" alt="" />
				<a href="../index.jsp">Front office</a>
			</li>
		</ul>
		<h3>Referentiel</h3>
		<ul class="boite orange">
			<li>
				<img src="../resources/images/folder.png" alt="" />
				<a href="categories.jsp">Categories</a>
			</li>
			<li>
				<img src="../resources/images/user_edit.png" alt="" />
				<a href="authors.jsp">Auteurs</a>
			</li>
			<li>
				<img src="../resources/images/book.png" alt="" />
				<a href="books.jsp">Livres</a>
			</li>
			<li>
				<img src="../resources/images/user.png" alt="" />
				<a href="users.jsp">Utilisateurs</a>
			</li>
		</ul>
		<h3>Commandes</h3>
		<ul class="boite orange">
			<li>
				<img src="../resources/images/cart.png" alt="" />
				<a href="orders.jsp">Toutes</a>
			</li>
			<li>
				<img src="../resources/images/hourglass.png" alt="" />
				<strong><a href="orders.jsp?status=<%=Order.STATUS_ORDERED%>">En attente</a></strong>
			</li>
			<li>
				<img src="../resources/images/lorry.png" alt="" />
				<a href="orders.jsp?status=<%=Order.STATUS_SHIPPED%>">Envoyees</a>
			</li>
		</ul>
	</div>
	<%
		Map<String, String> messagesCommun = MessagesUtil.getMessages(request);
		if (!messagesCommun.isEmpty()) {
	%>
	<div class="contenuAvecMenu boite rouge">
		<ul class="messages">
		<% for (Entry<String, String> entryCommun : messagesCommun.entrySet()) { %>
			<li class="<%=entryCommun.getValue()%>"><%=entryCommun.getKey()%></li>
		<% } %>
		</ul>
	</div>
	<% } %>
